package com.tianji.learning.controller;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.query.QuestionAdminPageQuery;
import com.tianji.learning.domain.vo.QuestionAdminVO;
import com.tianji.learning.service.IInteractionQuestionService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author liuchun
 * @version 1.0
 * @date 2024/9/3 16:04
 */
@RequestMapping("/admin")
public class InteractionAdminQuestionController {

    @Autowired
    private IInteractionQuestionService questionService;

    /**
     * 管理端分页查询问题
     * @param query
     * @return
     */
    @GetMapping("/question/page")
    @ApiOperation("管理端分页查询问题接口")
    public PageDTO<QuestionAdminVO> adminPageQuestion(QuestionAdminPageQuery query) {
        return questionService.adminPageQuestion(query);
    }
}
